<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * BusinessException class, use to throw in business
 *
 * @package		CodeIgniter
 * @subpackage	Libraries
 * @category	Exceptions
 * @author		DangLD
 */
class BaseException extends Exception {
	protected $code = null;
	protected $data = array();
	
	function __construct($message = null, $code = null, $data = array()) {
		parent::__construct($message);
		$this->code = $code;
		$this->data = $data;
	}
}